import xmlrpclib

## Host And Port Setup
HOST    =   '192.168.1.1'
PORT    =   '55555'
PASSKEY =   'putanicelongpasswordhere'

## Start the xmlrpc Client.
s = xmlrpclib.Server('http://'+ str(HOST) +':'+ str(PORT))

## The Process your trying to find Available options are..
## Azureus,Notepad,SABnzbd,uTorrent,kaiEngine
ProcName    =   'Azureus'

## The List of Replies will be a short text string:
## Started      -   The process was Started by the Application.
## Running      -   The Process was Already running.
## PassKey      -   The PassKey of this script does not match the Program.
## Unknown      -   Fell through script.
## Error        -   Script process Failed.
## Undefined    -   The Process your trying to check has not been configured.
Reply,Good  =   s.StartProcess(str(PASSKEY),str(ProcName))

## Display the Results.
print 'Process =='+ str(ProcName) + ' -- Result :'+ str(Reply) +' --Available:'+ str(Good)


